<?php


//载入模板配置文件

switch($_SERVER['SERVER_NAME']){
	case "www.yq.com":
	    //测试数据库
	    $DB_HOST = "m.shenghuodiandiantong.com";
	    $DB_NAME = "yongqi";
	    $DB_USER = "yongqi";
	    $DB_PWD  = "projectforyongqi";
	    $URL = "";
	    $DOMAIN = "";
	    $VERSION = "TEST";
	    $DB_PORT = "3306";
	    
	    $TMPL_EXCEPTION_FILE = LIB_PATH.'TpFrame/Tpl/think_exception_old.tpl';
	    break;
	default:
	    //正式数据库
		// $DB_HOST = "aliyun06.hjie.net";
		// $DB_NAME = "Card";
		// $DB_USER = "card";
		// $DB_PWD  = '6Umh6Li4eB$F';
		// $URL = "";
		// $DOMAIN = "";
		// $VERSION = "PE";
		// $DB_PORT = "5066";
		$DB_HOST = "m.shenghuodiandiantong.com";
	    $DB_NAME = "yongqi";
	    $DB_USER = "yongqi";
	    $DB_PWD  = "projectforyongqi";
	    $URL = "";
	    $DOMAIN = "";
	    $VERSION = "PE";
	    $DB_PORT = "3306";
		
		$TMPL_EXCEPTION_FILE = LIB_PATH.'TpFrame/Tpl/think_exception.tpl';
		break;
}

GLOBAL $_CONFIG;

return array(
	//'配置项'=>'配置值'
	'URL_CASE_INSENSITIVE' => 'true',//开启模块大小写通用模式
	
	'TMPL_SWITCH_ON'       => true, // 启用多模版支持
	'TMPL_DETECT_THEME'    => true, // 自动侦测模板主题
	
 	'DEFAULT_MODULE'       => 'Console',//默认模块
 	'DEFAULT_ACTION'       => 'login',// 默认操作
	
	'URL_MODEL'            => 2,// URL模式
	'URL_HTML_SUFFIX'      => 'html',//伪静态模式
	
	//连接MYSQL数据库
	'DB_TYPE'              => 'MySQLi',
	
	'DB_HOST'              => $DB_HOST,
	'DB_NAME'              => $DB_NAME,
	'DB_USER'              => $DB_USER,
	'DB_PWD'               => $DB_PWD,
	'DB_PORT'              => $DB_PORT,
	'DB_PREFIX'            => '',
			
	
	'SHOW_RUN_TIME'        => false,// 运行时间显示
	'SHOW_ADV_TIME'        => false,// 显示详细的运行时间
	
	//分语言使用不同模版
	'TMPL_DETECT_THEME'    => true,
	'DEFAULT_THEME'        => 'Console',
	'THEME_LIST'           => 'Console',

	//模版参数定界符
	'TMPL_L_DELIM'         => '{',
	'TMPL_R_DELIM'         => '}',
	
    'TMPL_EXCEPTION_FILE'  => LIB_PATH.'TpFrame/Tpl/think_exception_old.tpl' //开启错误提示
);
?>